@REM 查看端口转发
netsh interface portproxy show all

@REM 删除转发的端口
netsh interface portproxy delete v4tov4 listenaddress=0.0.0.0 listenport=22
netsh advfirewall firewall delete rule name="Allow Port 22"

@REM 删除转发的端口
netsh interface portproxy delete v4tov4 listenaddress=0.0.0.0 listenport=80
netsh advfirewall firewall delete rule name="Allow Port 80"


netsh interface portproxy delete v4tov4 listenaddress=0.0.0.0 listenport=443
netsh advfirewall firewall delete rule name="Allow Port 443"


netsh interface portproxy delete v4tov4 listenaddress=0.0.0.0 listenport=2883
netsh advfirewall firewall delete rule name="Allow Port 2883"


netsh interface portproxy delete v4tov4 listenaddress=0.0.0.0 listenport=380
netsh advfirewall firewall delete rule name="Allow Port 380"


netsh interface portproxy delete v4tov4 listenaddress=0.0.0.0 listenport=38090
netsh advfirewall firewall delete rule name="Allow Port 38090"


netsh interface portproxy delete v4tov4 listenaddress=0.0.0.0 listenport=7004
netsh advfirewall firewall delete rule name="Allow Port 7004"


netsh interface portproxy delete v4tov4 listenaddress=0.0.0.0 listenport=7012
netsh advfirewall firewall delete rule name="Allow Port 7012"

netsh interface portproxy delete v4tov4 listenaddress=0.0.0.0 listenport=57017
netsh advfirewall firewall delete rule name="Allow Port 57017"

netsh interface portproxy delete v4tov4 listenaddress=0.0.0.0 listenport=55432
netsh advfirewall firewall delete rule name="Allow Port 55432"

netsh interface portproxy delete v4tov4 listenaddress=0.0.0.0 listenport=5022
netsh advfirewall firewall delete rule name="Allow Port 5022"

@REM 查看端口转发
netsh interface portproxy show all
